<?php
include $this->Render('header.php');
?>
<script type="text/javascript">
	
	window.PIC_LIST = <?php echo json_encode($this->order['attachment']['source']);?>;//最新展示的面签资料
	window.OLD_PIC_LIST = '';//老的面签资料
	
	
	window.PIC_LIST_URL = <?php echo json_encode($this->order['attachment']['reurl']);?>;

	window.PIC_TXT = {"oa_cert":"证件照","oa_assets":"资产类照片","oa_family":"家访照","oa_sign":"签字照","oa_video":"视频类","oa_flowing":"流水类","oa_other":"其他资料","oa_contract":"合同照"};

	window.BASE_URL = '<?php echo BASE_STYLE;?>';
</script>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl.linkpage.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/uploadifive/jquery.uploadifive.js"></script>

<style type="text/css">
.line-bot {
	border:1px solid #a8a8a8;
}

.order-item-box {
	width:100%;
	height:auto;
	overflow:hidden;
	border-bottom:1px solid #a8a8a8;
	padding-bottom:15px;
	margin-bottom:15px;
}

.order-item-box input[type="text"],.order-item-box select {
	background:none;
}
.admin-search-box {
	padding:15px;
}

.x-form-field-wrap {display:inline-block;}
.ext-strict .x-form-text {height:22px !important; color:#555;}
.ico-close {z-index:999;}
.title-0 { font-weight:bold;width:108px;float:left;text-align:right;}
.input-02 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#5A96CC !important; background:#f6f6f6 !important; width:57% !important;}
.input-03 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle;width:57% !important;}
.input-04 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#5A96CC !important; background:#f6f6f6 !important; width:45% !important;}
.input-05 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle;width:45% !important;}
.input-06 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#000 !important; background:#00fcff !important; width:57% !important;}
.input-07 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#000 !important; background:#00fcff !important; width:45% !important;}
.input-08 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle; color:#5A96CC !important; background:#f6f6f6 !important; width:78% !important;}
.input-09 {border:1px solid #CCCCCC !important; font-size:14px !important; padding:2px !important; vertical-align:middle;  width:72% !important;}
</style>
<!--S 公共顶部-->
<div id="page-north">
    <?php
		include $this->Render('nav.php');
		include $this->Render('sub_nav.php');
	?>
</div>
<!--E 公共顶部 -->


<div class="chaxun-box" style="height:90%; overflow-y:scroll;overflow-x:hidden">
<form action="<?php echo $this->order['base']['o_status'] == '征信查询' ? '/order/trosave/option/trosave/' : '/order/crotrial/option/trosave/';?>" method="post" enctype="multipart/form-data" name="form1" class="J-ajaxForm" id="form1">
    <div class="order-item-box" style="border:0;">
        <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>基本信息</h2></legend>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="50%" height="35px">客 户 编 号：<?php echo $this->order['base']['o_number'];?></td>
                    <td>
                        业务来源人：
                        <!--
                        <select class="J-o-business-uid" id="J-o-business-uid" data-chkTxt="<?php echo $this->UserConfig['Id'];?>" name="o_business_uid">
                        </select>
                        -->
                        <input type="text" id="J-o-business-uid" value="<?php echo $this->order['base']['o_business_uname'];?>" />
                        <input type="hidden" name="o_business_uid" value="<?php echo $this->UserConfig['Id'];?>" />
                    </td>
                </tr>
                <tr>
                    <td height="35px">签约经销商：
                        <!--
                        <select class="J-o-buyer-type" data-chkTxt="<?php echo $this->order['base']['o_buyer_type'];?>" name="o_buyer_type">
                        </select>
                        -->
                        <input type="text" class="J-o-buyer-type" id="J-o-buyer-type" value="<?php echo $this->order['base']['o_buyer_type'];?>" name="o_buyer_type" />
                    </td>
                    <td>
                        经　销　商：
                        <!--
                        <select class="J-o-buyer-id" data-chkTxt="<?php echo $this->order['base']['o_buyer_id'];?>" name="o_buyer_id">
                        </select>
                        -->
                        <input type="text" id="J-o-buyer-id-input" value="<?php echo $this->order['base']['o_buyer'];?>" />
                        <input type="hidden" class="J-o-buyer-id" value="<?php echo $this->order['base']['o_buyer_id'];?>" name="o_buyer_id" />
                        <input type="hidden" class="J-o-buyer" name="o_buyer" value="<?php echo $this->order['base']['o_buyer'];?>" />
                    </td>
                </tr>
            </table>
        </fieldset>
        
    </div>
    <div class="order-item-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>购车人信息</h2></legend>
    	
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="33%">购 车 人 姓 名：<?php echo $this->order['base']['buyer']['ct_name'];?></td>
                    <td colspan="2" width="33%">
                        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<?php echo $this->order['base']['buyer']['ct_sex'];?>
                    </td>
                    <td width="33%">身份证号：<?php echo $this->order['base']['buyer']['ct_code'];?></td>
                </tr>
                <tr>
                    <td height="35px" colspan="2" width="33%">
                        身份证归属地：<?php echo $this->order['base']['buyer']['ct_affiliation'];?>
                    </td>
                    <td colspan="2" id="huoji-areas">
                        户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;籍：
                        <select id="province" name="ot_residence_pro" style="width:100px" ></select>
                        <select id="city" class="J-ot-city" name="ot_residence_city" style="width:100px"></select>
                        <select id="area" class="J-ot-areas" data-chkTxt="<?php echo empty($this->order['owner']['ot_residence_area']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_residence_area'];?>" name="ot_residence_area" style="width:100px"></select>
                        <input id="test" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        身份证地址：
                        <input type="text" name="ct_idaddress" style="width:153px;" value="<?php echo $this->order['base']['buyer']['ct_idaddress'];?>"/>
                    </td>
                    <td colspan="2">
                        发证机关：
                        <input type="text" name="ct_issue" value="<?php echo $this->order['base']['buyer']['ct_issue'];?>"/>
                    </td>
                    <td>
                        身份证有效期截止日：
                        <input type="text" name="ct_validity_end" style="width:153px;" onClick="WdatePicker()" value="<?php echo $this->order['base']['buyer']['ct_validity_end'];?>" id="validity-end"/>
                        &nbsp;&nbsp;长期<input type="checkbox" name="changqi" id="changqi" class = 'changqi' <?php if($this->order['base']['buyer']['ct_validity_end'] =='0000-00-00' && $this->order['base']['buyer']['ct_validity_start'] != '0000-00-00') echo 'checked="checked"';?>>
                    </td>
                    <script>
                        if($("#changqi").attr("checked")){
                            $("#validity-end").attr("onClick","");
                            document.getElementById("validity-end").value="0000-00-00";
                            $("#validity-end").attr("disabled","disabled");
                        }
                    </script>
                </tr>
                <script type="text/javascript">
                    $("#huoji-areas").Linkage({ url:"/public/ajax/?option=city",selected:['<?php echo empty($this->order['owner']['ot_residence_pro']) ? $this->order['buyer']['ct_affiliation_arr'][0] : $this->order['owner']['ot_residence_pro'];?>','<?php echo empty($this->order['owner']['ot_residence_city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_residence_city'];?>','<?php echo empty($this->order['owner']['ot_residence_area']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_residence_area'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $("#huoji-areas").find("#test").val(value.join(','));
                        var cityVal = $(".J-ot-city").val();
                        //获取区
                        $(".J-ot-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("test"),"change");
                    }});
                    
                    $(".J-ot-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['owner']['ot_residence_city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_residence_city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
                <tr>
                    <td height="35px">
                        <em style="display: inline-block;width: 84px;">学　　　　历：</em>
                        <!--
                        <select class="J-ot-edu" data-chkTxt="<?php echo $this->order['owner']['ot_edu'];?>" name="ot_edu" style="width:100px;">
                        </select>
                        -->
                        
                        <input type="text" class="J-ot-edu J-ext-select" id="J-ot-edu" txt="学历" value="<?php echo $this->order['owner']['ot_edu'];?>" name="ot_edu" />
                    </td>
                    <td colspan="2">
                        手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：
                        <input name="ot_mobile" class="J-ot-mobile" style="width:153px;" type="text" value="<?php echo $this->order['owner']['ot_mobile'];?>" />
                        <span class="J-mobile-guishu"></span>
                    </td>
                    <td>
                        婚　　否：
                        <!--
                        <select class="J-ot-married" data-chkTxt="<?php echo $this->order['owner']['ot_married'];?>" name="ot_married">
                        </select>
                        -->
                        <input type="text" class="J-ot-married J-ext-select" id="J-ot-married" txt="婚姻状况" value="<?php echo $this->order['owner']['ot_married'];?>" name="ot_married" />
                    </td>
                </tr>
                <tr>
                    <td>
                         流&nbsp;&nbsp;水&nbsp;&nbsp;卡&nbsp;&nbsp;&nbsp;号：
                        <input name="ot_bankcard" class="J-ot-bankcard" style="width:153px;" type="text" value="<?php echo $this->order['owner']['ot_bankcard'];?>" />
                    </td>
                    <td colspan="2" height="35px">
                        固&nbsp;&nbsp;&nbsp;定&nbsp;&nbsp;电&nbsp;&nbsp;话：
                        <input name="ot_tel" type="text" class="J-ot-tel" style="width:153px;" value="<?php echo $this->order['owner']['ot_tel'];?>" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" width="33%" height="35px" id='youji-area'>
                        邮&nbsp;&nbsp;&nbsp;寄&nbsp;&nbsp;&nbsp;地&nbsp;&nbsp;址：
                        <select id="J-youji-province" name="ot_liveadd-province" style="width:100px" ></select>
                        <select id="J-youji-city" class="J-ot-liveadd-city" name="ot_liveadd-city" style="width:100px"></select>
                        <select id="J-youji-area" class="J-ot-liveadd-areas" data-chkTxt="<?php echo empty($this->order['owner']['ot_liveadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_liveadd-county'];?>" name="ot_liveadd-county" style="width:100px"></select>
                        <input id="J-hiden-liveadd-val" id="hiden-liveadd-val" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
                        <input name="ot_liveadd-address" type="text" class="J-ot-liveadd-address" placeholder="详细地址" style="width:300px;" value="<?php echo $this->order['owner']['ot_liveadd_address'];?>" />
                        
                    </td>
                </tr>
                <script type="text/javascript">
                    $("#youji-area").Linkage({ url:"/public/ajax/?option=city",selects:['#J-youji-province','#J-youji-city','#J-ot-liveadd-areas'],selected:['<?php echo empty($this->order['owner']['ot_liveadd-province']) ? $this->order['buyer']['ct_affiliation_arr'][0] : $this->order['owner']['ot_liveadd-province'];?>','<?php echo empty($this->order['owner']['ot_liveadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_liveadd-city'];?>','<?php echo empty($this->order['owner']['ot_liveadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_liveadd-county'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $("#youji-area").find(".J-hiden-liveadd-val").val(value.join(','));
                        var cityVal = $(".J-ot-liveadd-city").val();
                        //获取区
                        $(".J-ot-liveadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("hiden-liveadd-val"),"change");
                    }});
                    
                    $(".J-ot-liveadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['owner']['ot_liveadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_liveadd-city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" height="35px" id='zhuzhai-area'>
                        住&nbsp;&nbsp;&nbsp;宅&nbsp;&nbsp;&nbsp;地&nbsp;&nbsp;址：                        
                        <select id="J-zhuzhai-province" name="ot_home_add-province" style="width:100px" ></select>
                        <select id="J-zhuzhai-city" class="J-ot-homeadd-city" name="ot_home_add-city" style="width:100px"></select>
                        <select id="J-zhuzhai-area" class="J-ot-homeadd-areas" data-chkTxt="<?php echo empty($this->order['owner']['ot_homeadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_homeadd-county'];?>" name="ot_home_add-county" style="width:100px"></select>
                        <input id="J-hiden-homeadd-val" id="hiden-homeadd-val" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
                        <input name="ot_home_add-address" type="text" class="J-ot-homeadd-address" placeholder="详细地址" style="width:300px;" value="<?php echo $this->order['owner']['ot_homeadd_address'];?>" />
                        
                    </td>
                <td>入&nbsp;住&nbsp;时&nbsp;间: <input name="ot_checkin_date" type="text" style=" width:150px;" onClick="WdatePicker()" value="<?php echo $this->order['owner']['ot_checkin_date'];?>" /></td>
                </tr>
                <script type="text/javascript">
                    $("#zhuzhai-area").Linkage({ url:"/public/ajax/?option=city",selects:['#J-zhuzhai-province','#J-zhuzhai-city','#J-zhuzhai-areas'],selected:['<?php echo empty($this->order['owner']['ot_homeadd-province']) ? $this->order['buyer']['ct_affiliation_arr'][0] : $this->order['owner']['ot_homeadd-province'];?>','<?php echo empty($this->order['owner']['ot_homeadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_homeadd-city'];?>','<?php echo empty($this->order['owner']['ot_homeadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_homeadd-county'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $("#zhuzhai-area").find(".J-hiden-homeadd-val").val(value.join(','));
                        var cityVal = $(".J-ot-homeadd-city").val();
                        //获取区
                        $(".J-ot-homeadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("hiden-homeadd-val"),"change");
                    }});
                    
                    $(".J-ot-homeadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['owner']['ot_homeadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_homeadd-city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
                    </td>
                </tr>
                <tr>
                    <td>
                        房&nbsp;&nbsp;&nbsp;产&nbsp;&nbsp;地&nbsp;&nbsp;址：
                        <input name="ot_house_add" type="text" class="J-ot-house-add" style="width:153px" value="<?php echo $this->order['owner']['ot_house_add'];?>" />
                    </td>
                    <td height="35px" colspan="2">
                        房产所有权人：
                        <input name="ot_house_owner" type="text" class="J-ot-house-owner" style="width:153px" value="<?php echo $this->order['owner']['ot_house_owner'];?>" />
                    </td>
                    <td height="35px">
                        与购车人关系：
                        <!--
                        <select class="J-ot-hown-relation" data-chkTxt="<?php echo $this->order['owner']['ot_hown_relation'];?>" name="ot_hown_relation" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ot-hown-relation J-ext-select" id="J-ot-hown-relation" txt="关系" value="<?php echo $this->order['owner']['ot_hown_relation'];?>" name="ot_hown_relation" />
                        
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        房&nbsp;&nbsp;&nbsp;产&nbsp;&nbsp;性&nbsp;&nbsp;质：
                        <!--
                        <select class="J-ot-house-nature" data-chkTxt="<?php echo $this->order['owner']['ot_house_nature'];?>" name="ot_house_nature" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ot-house-nature J-ext-select" id="J-ot-house-nature" txt="房屋性质" value="<?php echo $this->order['owner']['ot_house_nature'];?>" name="ot_house_nature" />
                    </td>
                    <td colspan="2">
                        房&nbsp;&nbsp;&nbsp;屋&nbsp;&nbsp;面&nbsp;&nbsp;积：
                        <input name="ot_house_acreage" type="text" style="width:120px" value="<?php echo $this->order['owner']['ot_house_acreage'];?>" />平方米
                    </td>
                    <td>
                        目前市价：
                        <input name="ot_house_price" type="text" style="width:100px" value="<?php echo $this->order['owner']['ot_house_price'];?>" />万元
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        房&nbsp;&nbsp;&nbsp;贷&nbsp;&nbsp;金&nbsp;&nbsp;额：
                        <input name="ot_house_loan" type="text" style="width:130px" value="<?php echo $this->order['owner']['ot_house_loan'];?>" />万元
                    </td>
                    <td colspan="2">
                        年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;限：
                        <input name="ot_house_loyear" type="text" class="J-ot-house-loyear" style="width:140px" value="<?php echo $this->order['owner']['ot_house_loyear'];?>" />月
                    </td>
                    <td>
                        月&nbsp;&nbsp;还&nbsp;款：
                        <input name="ot_house_refundmo" type="text" style="width:100px" value="<?php echo $this->order['owner']['ot_house_refundmo'];?>" />元
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
                        <input name="ot_company" type="text" class="J-ot-company" style="width:153px;" value="<?php echo $this->order['owner']['ot_company'];?>" />
                    </td>
                    <td colspan="3" id='danwei-area'>
                        单&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;地&nbsp;&nbsp;址：
                        <select id="J-danwei-province" name="ot_company_add-province" style="width:100px" ></select>
                        <select id="J-danwei-city" class="J-ot-companyadd-city" name="ot_company_add-city" style="width:100px"></select>
                        <select id="J-danwei-area" class="J-ot-companyadd-areas" data-chkTxt="<?php echo empty($this->order['owner']['ot_companyadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_companyadd-county'];?>" name="ot_company_add-county" style="width:100px"></select>
                        <input id="J-hiden-companyadd-val" id="hiden-companyadd-val" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
                        <input name="ot_company_add-address" type="text" class="J-ot-companyadd-address" placeholder="详细地址" style="width:300px;" value="<?php echo $this->order['owner']['ot_companyadd_address'];?>" />
                        
                    </td>
                </tr>
                <script type="text/javascript">
                    $("#danwei-area").Linkage({ url:"/public/ajax/?option=city",selects:['#J-danwei-province','#J-danwei-city','#J-danwei-areas'],selected:['<?php echo empty($this->order['owner']['ot_companyadd-province']) ? $this->order['buyer']['ct_affiliation_arr'][0] : $this->order['owner']['ot_companyadd-province'];?>','<?php echo empty($this->order['owner']['ot_companyadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_companyadd-city'];?>','<?php echo empty($this->order['owner']['ot_companyadd-county']) ? $this->order['buyer']['ct_affiliation_arr'][2] : $this->order['owner']['ot_companyadd-county'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $("#danwei-area").find(".J-hiden-companyadd-val").val(value.join(','));
                        var cityVal = $(".J-ot-companyadd-city").val();
                        //获取区
                        $(".J-ot-companyadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("hiden-companyadd-val"),"change");
                    }});
                    
                    $(".J-ot-companyadd-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['owner']['ot_companyadd-city']) ? $this->order['buyer']['ct_affiliation_arr'][1] : $this->order['owner']['ot_companyadd-city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
                    </td>
                    
                </tr>
                <tr>
                    <td height="35px">
                        单&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;电&nbsp;&nbsp;话：
                        <input name="ot_company_tel" type="text" class="J-ot-company-tel" style="width:153px" value="<?php echo $this->order['owner']['ot_company_tel'];?>" />
                    </td>
                    <td colspan="2">
                        单&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;类&nbsp;&nbsp;型：
                        <!--
                        <select class="J-ot-company-type" data-chkTxt="<?php echo $this->order['owner']['ot_company_type'];?>" name="ot_company_type" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ot-company-type J-ext-select" id="J-ot-company-type" txt="行业" value="<?php echo $this->order['owner']['ot_company_type'];?>" name="ot_company_type" />
                    </td>
                    <td>
                        职务类型：
                        <!--
                        <select class="J-ot-duty-type" data-chkTxt="<?php echo $this->order['owner']['ot_duty_type'];?>" name="ot_duty_type" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ot-duty-type J-ext-select" id="J-ot-duty-type" txt="职务类别" value="<?php echo $this->order['owner']['ot_duty_type'];?>" name="ot_duty_type" />
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：
                        <!--
                        <select class="J-ot-duty" data-chkTxt="<?php echo $this->order['owner']['ot_duty'];?>" name="ot_duty" style="width:120px">
                        </select>
                        -->
                        <input type="text" class="J-ot-duty J-ext-select" id="J-ot-duty" txt="职业或职务" value="<?php echo $this->order['owner']['ot_duty'];?>" name="ot_duty" />
                        
                    </td>
                    <td colspan="2">
                        经&nbsp;&nbsp;&nbsp;营&nbsp;&nbsp;期&nbsp;&nbsp;限：
                        <!--
                        <select class="J-ot-operat-period" data-chkTxt="<?php echo $this->order['owner']['ot_operat_period'];?>" name="ot_operat_period" style="width:120px">
                        </select>
                        -->
                        <input type="text" class="J-ot-operat-period J-ext-select" id="J-ot-operat-period" txt="经营期限" value="<?php echo $this->order['owner']['ot_operat_period'];?>" name="ot_operat_period" />
                        
                    </td>
                    <td>
                        工　　龄：
                        <!--
                        <select class="J-ot-seniority" data-chkTxt="<?php echo $this->order['owner']['ot_seniority'];?>" name="ot_seniority" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ot-seniority J-ext-select" id="J-ot-seniority" txt="工龄" value="<?php echo $this->order['owner']['ot_seniority'];?>" name="ot_seniority" />
                        
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        所&nbsp;&nbsp;&nbsp;占&nbsp;&nbsp;股&nbsp;&nbsp;份：
                        <input name="ot_stake" type="text" value="<?php echo $this->order['owner']['ot_stake'];?>" />%
                    </td>
                    <td colspan="2">
                        月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;收&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;入：
                        <input name="ot_income_month" type="text" value="<?php echo $this->order['owner']['ot_income_month'];?>" />元
                    </td>
                    <td>
                        入&nbsp;职&nbsp;时&nbsp;间: <input name="ot_hiredate" type="text" style=" width:150px;" onClick="WdatePicker()" value="<?php echo $this->order['owner']['ot_hiredate'];?>" />
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        紧急联系人一：
                        <input name="ot_contact[0][name]" type="text" class="J-jjlxr-name1" value="<?php echo $this->order['owner']['ot_contact'][0]['name'];?>" />
                    </td>
                    <td>
                        手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：
                        <input name="ot_contact[0][mobile]" type="text" class="J-jjlxr-mobile1" value="<?php echo $this->order['owner']['ot_contact'][0]['mobile'];?>" />
                    </td>
                    <td>
                        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：
                        <input type="text" class="J-jjlxr-sex1 J-ext-select" id="J-jjlxr-sex1" txt="性别" value="<?php echo $this->order['owner']['ot_contact'][0]['sex'];?>" name="ot_contact[0][sex]" />
                    </td>
                    <td>
                        关　　系：
                        <!--
                        <select class="J-jjlxr-relation1" data-chkTxt="<?php echo $this->order['owner']['ot_contact'][0]['relation'];?>" name="ot_contact[0][relation]">
                        </select>
                        -->
                        <input type="text" class="J-jjlxr-relation1 J-ext-select" id="J-jjlxr-relation1" txt="关系" value="<?php echo $this->order['owner']['ot_contact'][0]['relation'];?>" name="ot_contact[0][relation]" />
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        紧急联系人二：
                        <input name="ot_contact[1][name]" type="text" class="J-jjlxr-name2" value="<?php echo $this->order['owner']['ot_contact'][1]['name'];?>" />
                    </td>
                    <td>
                        手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：
                        <input name="ot_contact[1][mobile]" type="text" class="J-jjlxr-mobile2" value="<?php echo $this->order['owner']['ot_contact'][1]['mobile'];?>" />
                    </td>
                    <td>
                        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：
                        <input type="text" class="J-jjlxr-sex2 J-ext-select" id="J-jjlxr-sex2" txt="性别" value="<?php echo $this->order['owner']['ot_contact'][1]['sex'];?>" name="ot_contact[1][sex]" />
                    </td>
                    <td>
                        关　　系：
                        <!--
                        <select class="J-jjlxr-relation2" data-chkTxt="<?php echo $this->order['owner']['ot_contact'][1]['relation'];?>" name="ot_contact[1][relation]">
                        </select>
                        -->
                        <input type="text" class="J-jjlxr-relation2 J-ext-select" id="J-jjlxr-relation2" txt="关系" value="<?php echo $this->order['owner']['ot_contact'][1]['relation'];?>" name="ot_contact[1][relation]" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：
                        <textarea name="ot_remark" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['owner']['ot_remark'];?></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" height="35px">
                        征&nbsp;&nbsp;&nbsp;信&nbsp;&nbsp;结&nbsp;&nbsp;果：
                        <?php 
                            echo $this->order['buyer']['ct_remark'];
                        ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($this->order['buyer']['ct_querytime']>0){echo date('Y-m-d H:i:s',$this->order['buyer']['ct_querytime']);}?>
                    </td>
                </tr>
                
            </table>
        </fieldset>
    </div>
    <?php if(!empty($this->order['spouse'])){?>
    <div class="order-item-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>配偶信息</h2></legend>

            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="33%">配&nbsp;&nbsp;&nbsp;偶&nbsp;&nbsp;姓&nbsp;&nbsp;名：<?php echo $this->order['spouse']['ct_name'];?></td>
                    <td width="33%">
                        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<?php echo $this->order['spouse']['ct_sex'];?>
                    </td>
                    <td width="33%">身份证号：<?php echo $this->order['spouse']['ct_code'];?></td>
                </tr>
                <input type="hidden" value="<?php echo $this->order['spouse']['ct_id'];?>" name="ct_spouse_detail[ct_spouse_id]" />
                <tr>
                    <td height="35px" width="33%">
                        身份证归属地：<?php echo $this->order['spouse']['ct_affiliation'];?>
                    </td>
                    <td colspan="3" id="spouse-areas">
                        户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;籍：
                        <select id="J-spouse-province" name="ct_spouse_detail[ct_spouse_province]" style="width:100px" ></select>
                        <select id="J-spouse-city" class="J-ct-spouse-city" name="ct_spouse_detail[ct_spouse_city]" style="width:100px"></select>
                        <select id="J-spouse-area" class="J-ct-spouse-areas" data-chkTxt="<?php echo empty($this->order['spouse']['ct_detail']['ct_spouse_area']) ? $this->order['spouse']['ct_affiliation_arr'][2] : $this->order['spouse']['ct_detail']['ct_spouse_area'];?>" name="ct_spouse_detail[ct_spouse_area]" style="width:100px"></select>
                        <input class="J-hiden-spouse-val" id="hiden-spouse-val" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
                        
                    </td>
                </tr>
    
                <script type="text/javascript">
                    $("#spouse-areas").Linkage({ url:"/public/ajax/?option=city",selects:['#J-spouse-province','#J-spouse-city',''],selected:['<?php echo empty($this->order['spouse']['ct_detail']['ct_spouse_province']) ? $this->order['spouse']['ct_affiliation_arr'][0] : $this->order['spouse']['ct_detail']['ct_spouse_province'];?>','<?php echo empty($this->order['spouse']['ct_detail']['ct_spouse_city']) ? $this->order['spouse']['ct_affiliation_arr'][1] : $this->order['spouse']['ct_detail']['ct_spouse_city'];?>','<?php echo empty($this->order['spouse']['ct_detail']['ct_spouse_area']) ? $this->order['spouse']['ct_affiliation_arr'][2] : $this->order['spouse']['ct_detail']['ct_spouse_area'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $("#spouse-areas").find(".J-hiden-spouse-val").val(value.join(','));
                        var cityVal = $(".J-ct-spouse-city").val();
                        //获取区
                        $(".J-ct-spouse-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("hiden-spouse-val"),"change");
                    }});
                    
                    $(".J-ct-spouse-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['spouse']['ct_detail']['ct_spouse_city']) ? $this->order['spouse']['ct_affiliation_arr'][1] : $this->order['spouse']['ct_detail']['ct_spouse_city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
    
                <tr>
                    <td height="35px">
                        学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历：
                        <!--
                        <select class="J-ct-spouse-degree" data-chkTxt="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_degree'];?>" name="ct_spouse_detail[ct_spouse_degree]" style="width:100px;">
                        </select>
                        -->
                        <input type="text" class="J-ct-spouse-degree J-ext-select" id="J-ct-spouse-degree" txt="学历" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_degree'];?>" name="ct_spouse_detail[ct_spouse_degree]" />
                        
                    </td>
                    <td width="33%" height="35px">
                        手&nbsp;&nbsp;机&nbsp;号：
                        <input name="ct_spouse_detail[ct_spouse_mobile]" class="J-ct-spouse-mobile" style="width:155px;" type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_mobile'];?>" />
                    </td>
                    <td width="33%" height="35px">
                        流&nbsp;&nbsp;水&nbsp;账&nbsp;&nbsp;号：
                        <input name="ct_spouse_detail[ct_spouse_bankcard]" class="J-ct-spouse-bankcard" style="width:155px;" type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_bankcard'];?>" />
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        邮&nbsp;&nbsp;&nbsp;寄&nbsp;&nbsp;&nbsp;地&nbsp;&nbsp;址：
                        <input name="ct_spouse_detail[ct_spouse_liveadd]" type="text" class="J-ct-spouse-liveadd" style="width:151px;" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_liveadd'];?>" />
                    </td>
                    <td colspan="3">
                        固定电话：
                        <input name="ct_spouse_detail[ct_spouse_tel]" type="text" class="J-ct-spouse-tel" style="width:153px;" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_tel'];?>" />
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
                        <input name="ct_spouse_detail[ct_spouse_company]" type="text" class="J-ct-spouse-company" style="width:151px;" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_company'];?>" />
                    </td>
                    <td colspan="3">
                        单位地址：
                        <input name="ct_spouse_detail[ct_spouse_cadd]" style="width:153px;" class="J-ct-spouse-cadd" type="text" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_cadd'];?>" />
                    </td>
                    
                </tr>
                <tr>
                    <td height="35px">
                        单&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;&nbsp;电&nbsp;&nbsp;话：
                        <input name="ct_spouse_detail[ct_spouse_ctel]" type="text" class="J-ct-spouse-ctel" style="width:151px" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctel'];?>" />
                    </td>
                    <td width="33%" height="35px">
                        单位类型：
                        <!--
                        <select class="J-ct-spouse-type" data-chkTxt="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctype'];?>" name="ct_spouse_detail[ct_spouse_ctype]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-spouse-type J-ext-select" id="J-ct-spouse-type" txt="行业" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_ctype'];?>" name="ct_spouse_detail[ct_spouse_ctype]" />                    
                    </td>
                    <td width="33%" height="35px">
                        职务类型：
                        <!--
                        <select class="J-ct-spouse-dutytp" data-chkTxt="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_dutytp'];?>" name="ct_spouse_detail[ct_spouse_dutytp]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-spouse-dutytp J-ext-select" id="J-ct-spouse-dutytp" txt="职务类别" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_dutytp'];?>" name="ct_spouse_detail[ct_spouse_dutytp]" />
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：
                        <!--
                        <select class="J-ct-spouse-duty" data-chkTxt="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_duty'];?>" name="ct_spouse_detail[ct_spouse_duty]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-spouse-duty J-ext-select" id="J-ct-spouse-duty" txt="职业或职务" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_duty'];?>" name="ct_spouse_detail[ct_spouse_duty]" />
                    </td>
                    <td width="33%" height="35px">
                        经营期限：
                        <!--
                        <select class="J-ct-spouse-operatpd" data-chkTxt="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_operatpd'];?>" name="ct_spouse_detail[ct_spouse_operatpd]" style="width:120px">
                        </select>
                        -->
                        <input type="text" class="J-ct-spouse-operatpd J-ext-select" id="J-ct-spouse-operatpd" txt="经营期限" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_operatpd'];?>" name="ct_spouse_detail[ct_spouse_operatpd]" />
                    </td>
                    <td>
                        月&nbsp;&nbsp;收&nbsp;入：
                        <input name="ct_spouse_detail[ct_spouse_mincome]" type="text" class="J-ct-spouse-mincome" value="<?php echo $this->order['spouse']['ct_detail']['ct_spouse_mincome'];?>" />元
                    </td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：
                        <textarea name="ct_spouse_detail[ct_spouse_remark]" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo trim($this->order['spouse']['ct_detail']['ct_spouse_remark']);?></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" height="35px">
                        征&nbsp;&nbsp;&nbsp;信&nbsp;&nbsp;结&nbsp;&nbsp;果：
                        <?php 
                            echo $this->order['spouse']['ct_remark'];
                        ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($this->order['spouse']['ct_querytime']>0){echo date('Y-m-d H:i:s',$this->order['spouse']['ct_querytime']);}?>
                    </td>
                </tr>
                
            </table>
        </fieldset>
    </div>
    <input type="hidden" class="J-spouse-hidden" value="1" disabled />
    <?php
	}else{
	?>
    <input type="hidden" class="J-spouse-hidden" value="0" disabled />
    <?php
	}
	?>

    <?php
    	if(!empty($this->order['guarantor'])) {
			foreach($this->order['guarantor'] as $key => $val){
	?>
    <div class="order-item-box J-order-danbaoren-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>担保人信息<a href="javascript:;" style="float:right" data-ctid="<?php echo $val['ct_id'];?>" class="a-btn-close J-danbaoren-remove">删除</a></h2></legend>
    	
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="33%">担&nbsp;保&nbsp;人&nbsp;姓名：<?php echo $val['ct_name'];?></td>
                    <td width="33%">
                        性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：<?php echo $val['ct_sex'];?>
                    </td>
                    <td width="33%">身份证号：<?php echo $val['ct_code'];?></td>
                </tr>
                <input type="hidden" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_id]" value="<?php echo $val['ct_id'];?>" />
                <tr>
                    <td height="35px" width="33%">
                        担保人类型：
                    <select name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_type]">
                        <option value="公司担保人" <?php if($val['ct_guarantor_type']== '公司担保人') echo 'selected="selected"';?>>公司担保人</option>
                        <option value="银行共同还款人" <?php if($val['ct_guarantor_type']== '银行共同还款人') echo 'selected="selected"';?>>银行共同还款人</option>
                    </select>
                    </td>
                    <td height="35px" width="33%">
                        身份证归属地：<?php echo $val['ct_affiliation'];?>
                    </td>
                    <td class="J-ct-guarantor-<?php echo $key;?>">
                        户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;籍：
                        <select id="J-guarantor-province-<?php echo $key;?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_province]" style="width:100px" ></select>
                        <select id="J-guarantor-city-<?php echo $key;?>" class="J-ct-guarantor-city-<?php echo $key;?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_city]" style="width:100px"></select>
                        <select id="J-guarantor-area-<?php echo $key;?>" class="J-ct-guarantor-areas-<?php echo $key;?>" data-chkTxt="<?php echo empty($val['ct_detail']['ct_guarantor_area']) ? $this->val['ct_affiliation_arr'][2] : $val['ct_detail']['ct_guarantor_area'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_area]" style="width:100px"></select>
                        
                        <input class="J-hiden-guarantor-val" id="hiden-guarantor-val-<?php echo $key;?>" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>
    
                    </td>
                </tr>
    
                <script type="text/javascript">
                    $(".J-ct-guarantor-<?php echo $key;?>").Linkage({ url:"/public/ajax/?option=city",selects:['#J-guarantor-province-<?php echo $key;?>','#J-guarantor-city-<?php echo $key;?>',''],selected:['<?php echo empty($val['ct_detail']['ct_guarantor_province']) ? $this->val['ct_affiliation_arr'][0] : $val['ct_detail']['ct_guarantor_province'];?>','<?php echo empty($val['ct_detail']['ct_guarantor_city']) ? $this->val['ct_affiliation_arr'][1] : $val['ct_detail']['ct_guarantor_city'];?>','<?php echo empty($val['ct_detail']['ct_guarantor_area']) ? $this->val['ct_affiliation_arr'][2] : $val['ct_detail']['ct_guarantor_area'];?>'],callback:function(data){
                        var text = new Array();
                        var value = new Array();
                        for(i in data[0]){
                          if(data[0][i]!=0){
                            text.push(data[1][i]);
                            value.push(data[0][i]);
                          }
                        }
                        $(".J-ct-guaranto-<?php echo $key;?>r").find(".J-hiden-guarantor-val").val(value.join(','));
                        var cityVal = $(".J-ct-guarantor-city-<?php echo $key;?>").val();
                        //获取区
                        $(".J-ct-guarantor-areas-<?php echo $key;?>").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal,"selectTxt":'city',"selectId":'city'});
                        
                        FireEvent(document.getElementById("hiden-guarantor-val-<?php echo $key;?>"),"change");
                    }});
                    
                    $(".J-ct-guarantor-areas-<?php echo $key;?>").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($val['ct_detail']['ct_guarantor_city']) ? $this->val['ct_affiliation_arr'][1] : $val['ct_detail']['ct_guarantor_city'];?>',"selectTxt":'city',"selectId":'city'});
                </script>
                
                
                <tr>
                    <td height="35px" width="33%">
                        学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历：
                        <!--
                        <select class="J-ct-guarantor-degree" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_degree'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_degree]" style="width:100px;">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-degree J-ext-select J-ext-input-chek" id="J-ct-guarantor-degree-<?php echo $key;?>" txt="学历" data-banktext="请选择担保人学历" value="<?php echo $val['ct_detail']['ct_guarantor_degree'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_degree]" />
                    </td>
                    <td width="33%">
                        手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_mobile]" style="width:153px;" class="J-ct-guarantor-mobile J-ext-input-chek" id="J-ct-guarantor-mobile-<?php echo $key;?>" data-banktext="请填写担保人手机号码" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_mobile'];?>" />
                    </td>
                    <td width="33%">
                        婚　&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;否：
                        <!--
                        <select class="J-ct-guarantor-married" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_married'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_married]" style="width:100px;">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-married J-ext-select J-ext-input-chek" id="J-ct-guarantor-married-<?php echo $key;?>" data-banktext="请选择担保人婚姻状况" txt="婚姻状况" value="<?php echo $val['ct_detail']['ct_guarantor_married'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_married]" />
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        邮&nbsp;&nbsp;&nbsp;寄&nbsp;&nbsp;&nbsp;地&nbsp;&nbsp;址：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_liveadd]" class="J-ext-input-chek" id="J-ct-guarantor-liveadd-<?php echo $key;?>" data-banktext="请填写担保人邮寄地址" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_liveadd'];?>" />
                    </td>
                    <td width="33%" height="35px">
                        固&nbsp;&nbsp;定&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;话：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_tel]"  class="J-ext-input-chek" id="J-ct-guarantor-tel-<?php echo $key;?>" data-banktext="请填写担保人固定电话" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_tel'];?>" />
                    </td>
                    <td width="33%" height="35px">
                        流&nbsp;&nbsp;水&nbsp;&nbsp;卡&nbsp;&nbsp;&nbsp;号：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_bankcard]"  class="J-ext-input-chek" id="J-ct-guarantor-ct_guarantor_bankcard-<?php echo $key;?>" data-banktext="请填写担保人流水卡号" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_bankcard'];?>" />
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="35px">
                        实际家庭地址：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hadd]" class="J-ext-input-chek" id="J-ct-guarantor-hadd-<?php echo $key;?>" data-banktext="请填写担保人实际家庭地址" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hadd'];?>" />
                    </td>
                    <td colspan="2">
                        房&nbsp;&nbsp;产&nbsp;&nbsp;地&nbsp;&nbsp;&nbsp;址：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_headd]" class="J-ext-input-chek" id="J-ct-guarantor-headd-<?php echo $key;?>" data-banktext="请填写担保人房产地址" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_headd'];?>" />
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="35px">
                        房产所有权人：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_howner]" class="J-ext-input-chek" id="J-ct-guarantor-howner-<?php echo $key;?>" data-banktext="请填写担保人房产所有权人" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_howner'];?>" />
                    </td>
                    <td colspan="2">
                        与购车人关系：
                        <!--
                        <select class="J-ct-guarantor-hrelation" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_hrelation'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hrelation]">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-hrelation J-ext-select J-ext-input-chek" id="J-ct-guarantor-hrelation-<?php echo $key;?>" data-banktext="请选择担保人与购车人关系" txt="关系" value="<?php echo $val['ct_detail']['ct_guarantor_hrelation'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hrelation]" />
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="35px">
                        房&nbsp;&nbsp;产&nbsp;&nbsp;性&nbsp;&nbsp;&nbsp;质：
                        <!--
                        <select class="J-ct-guarantor-hnature" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_hnature'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hnature]">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-hnature J-ext-select J-ext-input-chek" id="J-ct-guarantor-hnature-<?php echo $key;?>" data-banktext="请选择担保人房产性质" txt="房屋性质" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hnature]" value="<?php echo $val['ct_detail']['ct_guarantor_hnature'];?>" />
                        
                    </td>
                    <td colspan="2">
                        房&nbsp;&nbsp;屋&nbsp;&nbsp;面&nbsp;&nbsp;&nbsp;积：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hacreage]" class="J-ext-input-chek" id="J-ct-guarantor-hacreage-<?php echo $key;?>" data-banktext="请填写担保人房屋面积" style="width:123px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hacreage'];?>" />平方米
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="35px">
                        目&nbsp;&nbsp;前&nbsp;&nbsp;市&nbsp;&nbsp;&nbsp;价：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hprice]" class="J-ext-input-chek" id="J-ct-guarantor-hprice-<?php echo $key;?>" data-banktext="请填写担保人的目前市价" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hprice'];?>" />
                    </td>
                    <td colspan="2">
                        房&nbsp;&nbsp;贷&nbsp;&nbsp;金&nbsp;&nbsp;&nbsp;额：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hloan]" class="J-ext-input-chek" id="J-ct-guarantor-hloan-<?php echo $key;?>" data-banktext="请填写担保人的房贷金额" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hloan'];?>" />
                    </td>
                </tr>
                
                <tr>
                    <td width="33%" height="35px">
                        年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;限：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hloyear]" class="J-ext-input-chek" id="J-ct-guarantor-hloyear-<?php echo $key;?>" data-banktext="请填写担保人的年限" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hloyear'];?>" />
                    </td>
                    <td colspan="2">
                        月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;还&nbsp;&nbsp;&nbsp;&nbsp;款：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_hrefundmo]" class="J-ext-input-chek" id="J-ct-guarantor-hrefundmo-<?php echo $key;?>" data-banktext="请填写担保人的月还贷" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_hrefundmo'];?>" />
                    </td>
                </tr>
                
    
                <tr>
                    <td width="33%" height="35px">
                        公&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_company]" class="J-ext-input-chek" id="J-ct-guarantor-company-<?php echo $key;?>" data-banktext="请填写担保人的公司名" style="width:152px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_company'];?>" />
                    </td>
                    <td colspan="2">
                        单&nbsp;&nbsp;位&nbsp;&nbsp;地&nbsp;&nbsp;&nbsp;址：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_cadd]" class="J-ext-input-chek" id="J-ct-guarantor-cadd-<?php echo $key;?>" data-banktext="请填写担保人的单位地址" style="width:153px;" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_cadd'];?>" />
                    </td>
                    
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        单&nbsp;&nbsp;位&nbsp;&nbsp;电&nbsp;&nbsp;&nbsp;话：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_ctel]" class="J-ext-input-chek" id="J-ct-guarantor-ctel-<?php echo $key;?>" data-banktext="请填写担保人的单位电话" type="text" style="width:153px" value="<?php echo $val['ct_detail']['ct_guarantor_ctel'];?>" />
                    </td>
                    <td width="33%">
                        单&nbsp;&nbsp;位&nbsp;&nbsp;类&nbsp;&nbsp;&nbsp;型：
                        <!--
                        <select class="J-ct-guarantor-type" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_ctype'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_ctype]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-type J-ext-select J-ext-input-chek" id="J-ct-guarantor-type-<?php echo $key;?>" txt="行业" data-banktext="请选择担保人的单位类型" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_ctype]" value="<?php echo $val['ct_detail']['ct_guarantor_ctype'];?>" />
                    </td>
                    <td width="33%">
                        职务类型：
                        <!--
                        <select class="J-ct-guarantor-dutytp" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_dutytp'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_dutytp]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-dutytp J-ext-select J-ext-input-chek" id="J-ct-guarantor-dutytp-<?php echo $key;?>" txt="职务类别" data-banktext="请选择担保人的职务类型" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_dutytp]" value="<?php echo $val['ct_detail']['ct_guarantor_dutytp'];?>" />
                    </td>
                </tr>
                <tr>
                    <td width="33%" height="35px">
                        职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务：
                        <!--
                        <select class="J-ct-guarantor-duty" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_duty'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_duty]" style="width:100px">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-duty J-ext-select J-ext-input-chek" id="J-ct-guarantor-duty-<?php echo $key;?>" txt="职业或职务" data-banktext="请选择担保人的职务" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_duty]" value="<?php echo $val['ct_detail']['ct_guarantor_duty'];?>" />
                    </td>
                    <td width="33%">
                        经&nbsp;&nbsp;营&nbsp;&nbsp;期&nbsp;&nbsp;&nbsp;限：
                        <!--
                        <select class="J-ct-guarantor-operatpd" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_operatpd'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_operatpd]" style="width:120px">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-operatpd J-ext-select J-ext-input-chek" id="J-ct-guarantor-operatpd-<?php echo $key;?>" txt="经营期限" data-banktext="请选择担保人的经营期限" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_operatpd]" value="<?php echo $val['ct_detail']['ct_guarantor_operatpd'];?>" />
                    </td>
                    <td width="33%">
                        工　　龄：
                        <!--
                        <select class="J-ct-guarantor-seniority" data-chkTxt="<?php echo $val['ct_detail']['ct_guarantor_seniority'];?>" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_seniority]" style="width:120px">
                        </select>
                        -->
                        <input type="text" class="J-ct-guarantor-seniority J-ext-select J-ext-input-chek" id="J-ct-guarantor-seniority-<?php echo $key;?>" txt="工龄" data-banktext="请选择担保人的工龄" name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_seniority]" value="<?php echo $val['ct_detail']['ct_guarantor_seniority'];?>" />
                    </td>
                </tr>
                
                <tr>
                    <td height="35px">
                        所&nbsp;&nbsp;&nbsp;占&nbsp;&nbsp;股&nbsp;&nbsp;份：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_stake]" class="J-ext-input-chek" id="J-ct-guarantor-stake-<?php echo $key;?>" data-banktext="请填写担保人的所占股份" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_stake'];?>" />%
                    </td>
                    <td colspan="2">
                        月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;收&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;入：
                        <input name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_mincome]" class="J-ext-input-chek" id="J-ct-guarantor-mincome-<?php echo $key;?>" data-banktext="请填写担保人的月收入" type="text" value="<?php echo $val['ct_detail']['ct_guarantor_mincome'];?>" />元
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：
                        <textarea name="ct_guarantor_detail[<?php echo $key;?>][ct_guarantor_remark]" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $val['ct_detail']['ct_guarantor_remark'];?></textarea>
                    </td>
                </tr>
                
                <tr>
                    <td colspan="4" height="35px">
                        征&nbsp;&nbsp;&nbsp;信&nbsp;&nbsp;结&nbsp;&nbsp;果：
                        <?php 
                            echo $val['ct_remark'];
                        ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($val['ct_querytime']>0){echo date('Y-m-d H:i:s',$val['ct_querytime']);}?>
                    </td>
                </tr>
                
            </table>
       </fieldset>
    </div>
    <input type="hidden" class="J-guarantor-hidden" value="1" disabled />
    <?php
			}
		}else{
	?>
    <input type="hidden" class="J-guarantor-hidden" value="0" disabled />
    <?php
		}
	?>
    <div class="order-item-box" style="border:0;<?php if ($this->order['car']['ot_car_lock'] =='lock'){ echo "display:none;";}?>">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>车辆信息</h2></legend>

            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td height="35px" width="54%" colspan="2">
                        <?php
                         if($this->order['car']['ot_car_pose'] == '二手车') {
                             ?>
                             车　　型：
                             <?php echo $this->order['car']['ot_car_model'].' ';?>
                             <?php echo $this->order['car']['ot_car_fullmodel']; ?>
                             <input name="ot_car_fullmodel" type="hidden" value="<?php echo $this->order['car']['ot_car_fullmodel'];?>" />
                             <input name="ot_car_model" type="hidden" value="<?php echo $this->order['car']['ot_car_model'];?>" />
                             <?php
                         }else{
                    ?>
                        车　　型：
                        <input type="text" class="J-ot-car-model" value="<?php echo $this->order['car']['ot_car_model'];?>" name="ot_car_model" id="<?php echo $this->order['car']['ot_car_pose'] == '二手车' ? '' : 'J-ot-car-model';?>" style="width:193px;" />
                        <input type="text" class="J-ot-car-fullmodel" id="J-ot-car-fullmodel" value="<?php echo $this->order['car']['ot_car_fullmodel'];?>" name="ot_car_fullmodel" style="width:287px;"/>
                        <?php } ?>&nbsp;&nbsp;

                        <span class="J-ot-car-seating"><?php if(!empty($this->order['car']['ot_car_seating'])){echo $this->order['car']['ot_car_seating'].'座';}?></span>
                        <input type="hidden" class="J-ot-car-seating-value" name="ot_car_seating" value="<?php echo $this->order['car']['ot_car_seating'];?>" />
                        <span class="J-ot-car-type"><?php echo $this->order['car']['ot_car_type'];?></span>
                        <input type="hidden" class="J-ot-car-type-value" name="ot_car_type" value="<?php echo $this->order['car']['ot_car_type'];?>" />
                        <input type="hidden" class="J-ot-car-brand-value" name="ot_car_brand" value="<?php echo $this->order['car']['ot_car_brand'];?>" />
                    </td>
                    <td width="23%">
                        车型构成：
                        <?php echo $this->order['car']['ot_car_pose'];?>
                        <input name="ot_car_pose" type="hidden" value="<?php echo $this->order['car']['ot_car_pose'];?>" />
                        <input name="ot_initialrg_time" type="hidden" value="<?php echo $this->order['car']['ot_initialrg_time'];?>" />
                    </td>
                     <script type="text/javascript">
                                $(".J-ot-car-fullmodel").blur(function(){
                                    var car_fullmodel = document.getElementById("J-ot-car-fullmodel").value;
                                    $.post('/public/ajax/option/carmsg/',{"car_fullmodel":car_fullmodel},function(data){
                                        var obj = JSON.parse(data);
                                        if(obj['success']){
                                            $(".J-ot-car-type").html(obj['msg']['type']);
                                            $(".J-ot-car-seating").html(obj['msg']['seat_number']+'座');
                                            $(".J-ot-car-type-value").val(obj['msg']['type']);
                                            $(".J-ot-car-seating-value").val(obj['msg']['seat_number']);
                                            $(".J-ot-car-brand-value").val(obj['msg']['brand']);
                                        }   
                                });
                                });
                     </script>
                    <td width="23%">
                        <span class="<?php echo $this->order['car']['ot_car_pose'] == '二手车' ? '' : 'fn-hide';?> J-ot-sinocap">
                            评&nbsp;&nbsp;估&nbsp;价：<?php echo $this->order['car']['ot_assessment'];?>
                            <input name="ot_assessment" readonly type="hidden" value="<?php echo $this->order['car']['ot_assessment'];?>" />
                            <!--待确定-->
                            <input name="ot_estimate" readonly type="hidden" value="<?php echo $this->order['car']['ot_estimate'];?>" />
                        </span>
                    </td>
                </tr>
                <tr>			
                    <td class="J-car-reg"  height="35px">
                        上&nbsp;&nbsp;牌&nbsp;地：
                        <select id="J-reg-province" name="ot_reg_province" style="width:100px" ></select>
                        <select id="J-reg-city" class="J-ct-reg-city" name="ot_reg_city" style="width:100px"></select>
                        <select id="J-reg-area" class="J-ct-reg-areas" data-chkTxt="<?php echo empty($this->order['car']['ot_reg_area']) ? '' : $this->order['car']['ot_reg_area'];?>" name="ot_reg_area" style="width:100px"></select>                    
                        <input class="J-hiden-reg-val" id="hiden-reg-val" type="text" style="visibility:hidden;width:0;" value="" alt="请选择完整地区信息！"><label></label>                    
                    </td>
                    <td>
                        是否公牌：
                        <input type="text" value="<?php echo $this->order['car']['ot_pubbrand'];?>" name="ot_pubbrand" id="J-ot-pubbrand" />
                    </td>
                    <script type="text/javascript">
                        $(".J-car-reg").Linkage({ url:"/public/ajax/?option=city&bank_id=<?php echo $this->order['base']['o_bank_id']?>",selects:['#J-reg-province','#J-reg-city',''],selected:['<?php echo empty($this->order['car']['ot_reg_province']) ? '' : $this->order['car']['ot_reg_province'];?>','<?php echo empty($this->order['car']['ot_reg_city']) ? '' : $this->order['car']['ot_reg_city'];?>','<?php echo empty($this->order['car']['ot_reg_area']) ? '' : $this->order['car']['ot_reg_area'];?>'],callback:function(data){
                            var text = new Array();
                            var value = new Array();
                            for(i in data[0]){
                              if(data[0][i]!=0){
                                text.push(data[1][i]);
                                value.push(data[0][i]);
                              }
                            }
                            $(".J-car-reg").find(".J-hiden-reg-val").val(value.join(','));
                            var cityVal = $(".J-ct-reg-city").val();
                            //获取区
                            $(".J-ct-reg-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city='+cityVal+'&bank_id=<?php echo $this->order['base']['o_bank_id']?>',"selectTxt":'city',"selectId":'city'});
                            
                            FireEvent(document.getElementById("hiden-reg-val"),"change");
                        }});                    
                        $(".J-ct-reg-areas").dyhlSelect({'type':'','url':'/public/ajax/?option=area&city=<?php echo empty($this->order['car']['ot_reg_city']) ? '杭州市' : $this->order['car']['ot_reg_city'];?>',"selectTxt":'city',"selectId":'city'});
                    </script>
                    <td>
                        行驶证车主：
                        <input name="ot_car_owners" type="text" class="J-ot-car-owners" value="<?php echo $this->order['car']['ot_car_owners'];?>" />
                    </td>
                    <td>
                        产品编号：<span class="J-pro-code"><?php echo $this->order['car']['ot_bankrt_code'];?></span>					
                        <input type="hidden" class="J-ot-bankrt-id" name="ot_bankrt_id" value="<?php echo $this->order['car']['ot_bankrt_id'];?>" />
                        <input type="hidden" class="J-ot-bankrt-code" name="ot_bankrt_code" value="<?php echo $this->order['car']['ot_bankrt_code'];?>" />
                    </td>                
                </tr>
                <tr>
                    <td height="35px">
                        贷款银行：
                        <?php echo $this->order['base']['o_bank'];?>
                        <input type="hidden" id="J_ct_bank_area" value="<?php echo $this->order['base']['o_bank'];?>" />
                    </td>
                    <td>
                        贷款年限：
                        <input type="text" class="J-ot-loan-year" value="<?php echo $this->order['car']['ot_loan_year'];?>" name="ot_loan_year" id="J-ot-loan-year" />
                    </td>
                    <td>
                        产品类型：
                        <input type="text" name="ot_loan_type" class="J-ot-loan-type" value="<?php echo $this->order['car']['ot_loan_type'];?>" id="J-ot-loan-type" />
                    </td>
                    <td>                    
                        银行利率：<span class="J-pro-bank-rate"><?php echo $this->order['car']['ot_calculated']['bank_rate'] * 100;?>%</span>
                    </td>
                </tr>
                <tr>
                    <td height="35px">
                        车　　价：
                        <input name="ot_car_price" type="text" class="J-ot-car-price" value="<?php echo $this->order['car']['ot_car_price'];?>" />元
                        <?php if($this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行' && $this->order['car']['ot_car_pose'] == '二手车'){?>  &nbsp;&nbsp;出报告金额 (元) ：
                        <span class="J-d-transaction-amount"></span>
                        <input type="hidden" class="J-d-transaction-amount-value" name="ot_calculated[d_transaction_amount]" value="" />
                        <?php }?>
                    </td>
                    <td class="J-ot-car-html">
                        <?php if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        其他费用：
                        <input name="ot_car_oprice" class="J-ot-car-oprice" type="text" value="<?php echo $this->order['car']['ot_car_oprice'];?>" />元<?php }else{?>
                        贷&nbsp;&nbsp;款&nbsp;额：
                        <input name="ot_loan_limit" class="J-ot-loan-limit" type="text" value="<?php echo $this->order['car']['ot_loan_limit'];?>" />元
                        <?php }?>
                    </td>
                    <td>
                        <?php if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        贷&nbsp;&nbsp;款&nbsp;额：
                        <input name="ot_loan_limit" class="J-ot-loan-limit" type="text" value="<?php echo $this->order['car']['ot_loan_limit'];?>" />元<?php }else{?>					
                        公司费率：
                        <input name="ot_loan_rate" type="text" class="J-ot-loan-rate" value="<?php echo $this->order['car']['ot_loan_rate'];?>"/>%
                        <?php }?>
                    </td>
                    <td>                	
                        <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        服务费率:
                        <input name="ot_service_rate" type="text" class="J-ot-servcie-rate" value="<?php echo $this->order['car']['ot_service_rate'];?>"/>%
                        <?php }else if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                        公司费率：
                        <input name="ot_loan_rate" type="text" class="J-ot-loan-rate" value="<?php echo $this->order['car']['ot_loan_rate'];?>"/>%
                        <?php }?>
                        <input type="hidden" class="J-o-bank-id" value="<?php echo $this->order['base']['o_bank_id'];?>" name="o_bank_id" />
                        <input type="hidden" class="J-bank-rate" value="<?php echo $this->order['car']['ot_calculated']['bank_rate'];?>" name="ot_calculated[bank_rate]" />
                        <a class="nc-btn-input J-loanrate" href="javascript:;" style=" position:relative; top:6px; left:25px;">计算</a>
                    </td>
                </tr>            
                <tr>
                    <td height="35px">
                        实际首付款（元）：
                        <span class="J-d-payment"></span>
                        <input type="hidden" class="J-d-payment-value" name="ot_calculated[d_payment]" value="" />
                    </td>				
                    <td>
                        实际贷款比例（％）：
                        <span class="J-d-loan-per"></span>
                        <input type="hidden" class="J-d-loan-per-value" name="ot_calculated[d_loan_per]" value="" />
                        <span style="display:none;" class="J-d-payment-per"></span>
                        <input type="hidden" class="J-d-payment-per-value" name="ot_calculated[d_payment_per]" value="" />
                    </td>
                    <td>
                        分期手续费（元）：
                        <span class="J-d-aging-poundage"></span>
                        <input type="hidden" class="J-d-aging-poundage-value" name="ot_calculated[d_aging_poundage]" value="" />
                    </td>
                    <td height="35px">
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        金融服务费（元）：
                        <span class="J-d-service-money"></span>
                        <input type="hidden" class="J-d-service-money-value" name="ot_calculated[d_service_money]" value="" />
                    <?php }?>
                    </td>
                </tr>            
                <tr>
                    <td height="35px">
                        分期付款总额（元）：
                        <span class="J-d-aging-money"></span>
                        <input type="hidden" class="J-d-aging-money-value" name="ot_calculated[d_aging_money]" value="" />
                    </td>
                    <td>
                        分期付款比例（％）：
                        <span class="J-d-aging-per"></span>
                        <input type="hidden" class="J-d-aging-per-value" name="ot_calculated[d_aging_per]" value="" />
                    </td>
                    <td>
                    </td>
                    <td>
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' || $this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                        金融服务费比例（％）：
                        <span class="J-d-service-per"></span>
                        <input type="hidden" class="J-d-service-per-value" name="ot_calculated[d_service_per]" value="" />
                    <?php }?>
                    </td>
                </tr>            
                <tr>
                    <td height="35px">
                        申请分期付款总额（元）：
                        <span class="J-d-signag-money"></span>
                        <input name="ot_calculated[d_signag_money]" class="J-d-signag-money-value" type="hidden" value="" />
                    </td>
                    <td>
                        申请分期付款比例（％）：
                        <span class="J-d-aging-moneyper"></span>
                        <input type="hidden" class="J-d-aging-moneyper-value" name="ot_calculated[d_aging_moneyper]" value="" />
                    </td>
                    <td>
                        首期还款额（元）：
                        <span class="J-d-refund-1month"></span>
                        <input type="hidden" class="J-d-refund-1month-value" name="ot_calculated[d_refund_1month]" value="" />
                    </td>
                    <td>
                        月还款额（元）：
                        <span class="J-d-refund-month"></span>
                        <input type="hidden" class="J-d-refund-month-value" name="ot_calculated[d_refund_month]" value="" />
                    </td>
                </tr>
                <tr>
                    <td colspan="4" valign="top">
                        备注：
                        <textarea name="ot_loan_remark" style="width:550px; height:55px; background:none; resize:none; vertical-align:text-top;"><?php echo $this->order['car']['ot_loan_remark'];?></textarea>
                    </td>
                </tr>
    
            </table>
       </fieldset>
    </div>
    <?php if($this->order['car']['ot_car_lock'] == 'lock'){?>
        <div class="order-item-box lock-item" id="lock-item" style="margin-top:30px; border:0;">
            <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
                <legend style="padding:5px 15px;"><h2>车辆信息<a style="color:red;">(已锁定)</a></h2></legend>
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td width="25%"><div class="title-0">
                                车型产地：</div><input type="text" value="<?php echo $this->order['car']['ot_car_type'];?>" readonly class="input-03">
                        </td>
                        <td width="25%"><div class="title-0">
                                车型：</div><input type="text" value="<?php echo $this->order['car']['ot_car_model'].' '.$this->order['car']['ot_car_fullmodel'];?>" readonly class="input-03">
                        </td>
                        <td width="25%"><div class="title-0">
                                座位数：</div> <input type="text" value="<?php echo $this->order['car']['ot_car_seating'];?>" readonly class="input-03">
                        </td>
                        <td width="25%" height="35"><div class="title-0">
                                车型构成：</div><input type="text" value="<?php echo $this->order['car']['ot_car_pose'];?>" readonly class="input-05">
                        </td>
                    </tr>
                <?php if($this->order['car']['ot_car_pose'] == '二手车'){ ?>
                    <tr>
                        <td height="30px"><div class='title-0'>初次上牌日期：</div><input type ="text" value="<?php echo $this->order['car']['ot_initialrg_time'];?>" class="input-03" readonly/></td>
                        <td><div class='title-0'>评估价：</div><input type ="text" value="<?php echo $this->order['car']['ot_assessment'];?>" class="input-06" readonly/></td>
                        <td><div class='title-0'>评估日期：</div><input type ="text" value="<?php echo $this->order['car']['ot_assess_time'];?>" class="input-03" readonly/></td>
                        <td><div class='title-0'>出报告金额：</div><input type ="text" value="<?php if($this->order['base']['o_bank'] == '中国工商银行股份有限公司哈尔滨东直支行' && isset($this->order['car']['ot_calculated']['d_transaction_amount'])){ echo $this->order['car']['ot_calculated']['d_transaction_amount'];}else{ echo $this->order['car']['ot_assessment'];}?>" class="input-07" readonly/></td>
                        <input type="hidden" class="J-d-amount-money-value" name="ot_calculated[d_transaction_amount]" value="<?php echo $this->order['car']['ot_calculated']['d_transaction_amount'];?>" />
                    </tr>
                <?php }?>
                <tr>
                    <tr>
                        <td width="25%" class="J-car-reg"><div class="title-0">
                                上牌地：</div> <input type="text" value="<?php echo $this->order['car']['ot_reg_province'];?><?php echo $this->order['car']['ot_reg_city'];?><?php echo $this->order['car']['ot_reg_area'];?>" readonly class="input-03">
                        </td>

                        <td width="25%"><div class="title-0">
                                是否公牌：</div><input type="text" value="<?php echo $this->order['car']['ot_pubbrand'];?>" readonly class="input-03">
                        </td>
                        <td width="25%" height="35"><div class="title-0">
                                行驶证车主：</div><input type="text" value="<?php echo $this->order['car']['ot_car_owners'];?>" readonly class="input-03">
                        </td>
                        <td width="25%" ><div class="title-0">产品编号：</div><input type="text" value="<?php echo $this->order['car']['ot_bankrt_code'];?>" readonly class="input-05">
                            <input type="hidden" class="J-ot-bankrt-id" name="ot_bankrt_id" value="<?php echo $this->order['car']['ot_bankrt_id'];?>" />
                            <input type="hidden" class="J-ot-bankrt-code" name="ot_bankrt_code" value="<?php echo $this->order['car']['ot_bankrt_code'];?>" />
                        </td>
                    </tr>

                    <tr>
                        <td width="25%"><div class="title-0">
                                贷款银行：</div><input type="text" value="<?php echo $this->order['base']['o_bank'];?>" readonly class="input-03">
                        </td>

                        <td width="25%"  height="35"><div class="title-0">
                                贷款年限：</div><input type="text" value="<?php echo $this->order['car']['ot_loan_year'];?>" readonly class="input-06">
                        </td>
                        <td width="25%"><div class="title-0">
                                产品类型：</div><input type="text" value="<?php echo $this->order['car']['ot_loan_type'];?>" readonly class="input-03">
                        </td>

                        <td width="25%"><div class="title-0">
                                银行利率：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['bank_rate'] * 100;?>%" readonly class="input-05">
                        </td>
                    </tr>
                    <tr>
                        <td width="25%" height="35"><div class="title-0">
                                车价：</div><input type="text" value="<?php echo $this->order['car']['ot_car_price'];?>&nbsp;元" readonly class="input-06">
                        </td>
                        <td width="25%"><div class="title-0">
                                贷款额：</div><input type="text" value="<?php echo $this->order['car']['ot_loan_limit'];?>&nbsp;元" readonly class="input-06">
                        </td>
                        <td width="25%"><div class="title-0">
                                公司费率：</div><input type="text" value="<?php echo $this->order['car']['ot_loan_rate'];?>%" readonly class="input-06">
                            <input type="hidden" class="J-o-bank-id" value="<?php echo $this->order['base']['o_bank_id'];?>" name="o_bank_id" />
                        </td>
                        <td width="25%"><div class="title-0">
                                <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' ||$this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                                服务费率：</div><input type="text" value="<?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' ||$this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?><?php echo $this->order['car']['ot_service_rate'];?>%<?php }else if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?><?php echo $this->order['car']['ot_car_oprice'];?>元<?php } ?>" readonly class="input-05">
                                
                            <?php }else if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?>
                            其他费用：</div><input type="text" value="<?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' ||$this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?><?php echo $this->order['car']['ot_service_rate'];?>%<?php }else if($this->order['base']['o_bank']=='中国农业银行股份有限公司萧山分行'){?><?php echo $this->order['car']['ot_car_oprice'];?>元<?php } ?>" readonly class="input-05">
    <?php } ?>


        </td>
        </tr>

        <tr>
            <td width="25%" height="35" class="J-d-payment"><div class="title-0">
                    实际首付款：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_payment'];?>元" readonly class="input-06">
                <input type="hidden" class="J-d-payment-value" name="ot_calculated[d_payment]" value="<?php echo $this->order['car']['ot_calculated']['d_payment'];?>" />
            </td>

            <td width="25%" height="35" class="J-d-payment-per"><div class="title-0">
                    实际首付比例：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_payment_per'];?>％" readonly class="input-03">
                <input type="hidden" class="J-d-payment-per-value" name="ot_calculated[d_payment_per]" value="<?php echo $this->order['car']['ot_calculated']['d_payment_per'];?>"/>
            </td>
            <td width="25%" height="35" class="J-d-loan-per"><div class="title-0">
                    实际贷款比例：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_loan_per'];?>％" readonly class="input-03">
                <input type="hidden" class="J-d-loan-per-value" name="ot_calculated[d_loan_per]" value="<?php echo $this->order['car']['ot_calculated']['d_loan_per'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-service-per"><div class="title-0">
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' ||$this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                    金融服务费比例：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_service_per'];?>％" readonly class="input-05">
                <input type="hidden" class="J-d-service-per-value" name="ot_calculated[d_service_per]" value="<?php echo $this->order['car']['ot_calculated']['d_service_per'];?>" />
                <?php }?>
            </td>
        </tr>

        <tr>
            <td width="25%" height="35" class="J-d-aging-money"><div class="title-0">
                    分期付款总额：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_aging_money'];?>元" readonly class="input-03">
                <input type="hidden" class="J-d-aging-money-value" name="ot_calculated[d_aging_money]" value="<?php echo $this->order['car']['ot_calculated']['d_aging_money'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-aging-per"><div class="title-0">
                    分期付款比例：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_aging_per'];?>％" readonly class="input-03">
                <input type="hidden" class="J-d-aging-per-value" name="ot_calculated[d_aging_per]" value="<?php echo $this->order['car']['ot_calculated']['d_aging_per'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-aging-poundage"><div class="title-0">
                    分期手续费：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_aging_poundage'];?>元" readonly class="input-03">
                <input type="hidden" class="J-d-aging-poundage-value" name="ot_calculated[d_aging_poundage]" value="<?php echo $this->order['car']['ot_calculated']['d_aging_poundage'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-service-money"><div class="title-0">
                    <?php if($this->order['base']['o_bank']=='（2017）中国工商银行股份有限公司杭州延中支行' ||$this->order['base']['o_bank']=='中国工商银行股份有限公司哈尔滨东直支行'){?>
                    金融服务费：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_service_money'];?>元" readonly class="input-05">
                <input type="hidden" class="J-d-service-money-value" name="ot_calculated[d_service_money]" value="<?php echo $this->order['car']['ot_calculated']['d_service_money'];?>" />
                <?php }?>
            </td>
        </tr>

        <tr>
            <td width="25%" height="35" class="J-d-signag-money"><div class="title-0">
                    申请分期付款总额：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_signag_money'];?>元" readonly class="input-03">
                <input name="ot_calculated[d_signag_money]" class="J-d-signag-money-value" type="hidden" value="<?php echo $this->order['car']['ot_calculated']['d_signag_money'];?>" />
            </td>

            <td width="25%" height="35" class="J-d-aging-moneyper"><div class="title-0">
                    申请分期付款比例：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_aging_moneyper'];?>％" readonly class="input-03">
                <input type="hidden" class="J-d-aging-moneyper-value" name="ot_calculated[d_aging_moneyper]" value="<?php echo $this->order['car']['ot_calculated']['d_aging_moneyper'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-refund-1month"><div class="title-0">
                    首期还款额：</div><input type="text" value="<?php echo empty($this->order['car']['ot_calculated']['d_refund_1month']) ? $this->order['car']['ot_calculated']['d_refund_month'] : $this->order['car']['ot_calculated']['d_refund_1month'];?>元" readonly class="input-06">
                <input type="hidden" class="J-d-refund-1month-value" name="ot_calculated[d_refund_1month]" value="<?php echo empty($this->order['car']['ot_calculated']['d_refund_1month']) ? $this->order['car']['ot_calculated']['d_refund_month'] : $this->order['car']['ot_calculated']['d_refund_1month'];?>" />
            </td>
            <td width="25%" height="35" class="J-d-refund-month"><div class="title-0">
                    月还款额：</div><input type="text" value="<?php echo $this->order['car']['ot_calculated']['d_refund_month'];?>元" readonly class="input-07">

                <input type="hidden" class="J-d-refund-month-value" name="ot_calculated[d_refund_month]" value="<?php echo $this->order['car']['ot_calculated']['d_refund_month'];?>" />
            </td>

        </tr>



        <tr>
            <td colspan="5" valign="top">
                备注：
                <?php echo $this->order['car']['ot_loan_remark'];?>
            </td>
            <td>

            </td>
        </tr>

        </table>
        </fieldset>
    </div>
<?php }?>
    
    <style type="text/css">
    	.uploadifive-button {width:84px;height:84px !important;line-height:normal;margin-top:-84px;background:none !important;}
		
		.file-upload-completed,.uploadifive-queue-item {position:absolute;width:84px;bottom:0;}
		
		.uploadifive-queue-item .close {background: url('<?php echo BASE_STYLE;?>/uploadifive/uploadifive-cancel.png') 0 0 no-repeat;display: block;float: right;height: 16px;
text-indent: -9999px;width: 16px;}
		.uploadifive-queue-item .progress {height: 3px;margin-top: 5px;width: 100%;}
		.uploadifive-queue-item .progress-bar {background-color: #0072BC;height: 3px;width: 0;}
		
		.uploadifive-queue-item .filename {display:none;}
		input[type="text"],select {background:none;}
		.order-mianqian-load { padding:15px 10px;}
    </style>
    
    
    <!--
    <div class="order-item-box">
    	<h2>面签信息</h2>
        <div class="J-mianqian-item-box">
        	<p class="order-mianqian-load">加载中...</p>
        </div>

    </div>
    -->
    <div class="order-item-box" style="border:0;">
    	<fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">
        	<legend style="padding:5px 15px;"><h2>面签信息<br /><a href='\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?>' target='_blank'>\\192.168.99.7\credit\<?php echo $this->order['base']['o_number'];?></a></h2></legend>
    	
            <dl class="mianqianxinxi-box">
                <dt>证件照</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-cert" id="J-box-order-cert">
                    <?php if(!empty($this->order['attachment']['oa_cert'])) foreach($this->order['attachment']['oa_cert'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_cert_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_cert_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_cert[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_cert"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_cert" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                    
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>资产类照片</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-assets" id="J-box-order-assets">
                    <?php if(!empty($this->order['attachment']['oa_assets'])) foreach($this->order['attachment']['oa_assets'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_assets_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_assets_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_assets[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_assets"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_assets" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                    
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>家访照</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-family" id="J-box-order-family">
                    <?php if(!empty($this->order['attachment']['oa_family'])) foreach($this->order['attachment']['oa_family'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                            <img data-original="<?php echo $this->order['attachment']['oa_family_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_family_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_family[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
            </dl>
    
            <dl class="mianqianxinxi-box">
                <dt>签字照</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-sign" id="J-box-order-sign">
                    
                    <?php if(!empty($this->order['attachment']['oa_sign'])) foreach($this->order['attachment']['oa_sign'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                            <img data-original="<?php echo $this->order['attachment']['oa_sign_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_sign_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_sign[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                    
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>视频类</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-video">
                    
                    <?php if(!empty($this->order['attachment']['oa_video'])) foreach($this->order['attachment']['oa_video'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <a href="javascript:;" class="J-video-obj" data-url="<?php echo $this->order['attachment']['oa_video_url'][$k];?>" style="position:relative; display:inline-block; width:80px;height:80px;margin-right:10px;">
                            <img src="<?php echo BASE_STYLE;?>/images/member/default_sildeshow.gif" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_video[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>流水类</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-flowing" id="J-box-order-flowing">
                    
                    <?php if(!empty($this->order['attachment']['oa_flowing'])) foreach($this->order['attachment']['oa_flowing'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_flowing_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_flowing_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_flowing[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_flowing"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_flowing" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>其他资料</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-other" id="J-box-order-other">
                    
                    <?php if(!empty($this->order['attachment']['oa_other'])) foreach($this->order['attachment']['oa_other'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_other_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_other_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_other[]" />
                        </a>
                    </div>
                    <?php
                    }
                    ?>
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_other"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_other" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                </dd>
            </dl>
            
            <dl class="mianqianxinxi-box">
                <dt>合同照</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-contract" id="J-box-order-contract">
                    
                    <?php if(!empty($this->order['attachment']['oa_contract'])) foreach($this->order['attachment']['oa_contract'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_contract_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_contract_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_contract[]" />
                        </a>
                    </div>
                    
                    <?php
                    }
                    ?>
                    
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_sign"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_contract" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                </dd>
            </dl>


            <dl class="mianqianxinxi-box">
                <dt>卡单照片</dt>
                <dd class="mianqianxinxi-pic-list J-box-order-singlecard" id="J-singlecard">
                    
                    <?php if(!empty($this->order['attachment']['oa_singlecard'])) foreach($this->order['attachment']['oa_singlecard'] as $k=>$v){?>
                    <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                        <em class="ico-close J-ico-close"></em>
                            <img data-original="<?php echo $this->order['attachment']['oa_singlecard_url'][$k];?>" class="example-image" src="<?php echo $this->order['attachment']['oa_singlecard_thurl'][$k];?>" width="80" height="80" />
                            <input type="hidden" value="<?php echo $v;?>" name="oa_singlecard[]" />
                        </a>
                    </div>
                    
                    <?php
                    }
                    ?>
                    
                </dd>
                <dd>
                    <div class="file-upload-box J-file-upload-box fn-left mr10">
                        <div class="file-upload-completed" id="J_order_singlecard"></div>
                        <img src="<?php echo BASE_STYLE;?>/images/btn_upload_pic.png" />
                        <input type="file" id="upload_order_singlecard" name="upload-pic" size="30" hidefocus="true" multiple='false' accept="image/*"/>
                    </div>
                </dd>
            </dl>

        </fieldset>
    </div>

    
    <div class="luru-box-btn mt30" style="position:fixed; bottom:0; width:100%; left:0; background:#FFF; text-align:right; padding:10px 20px; box-sizing:border-box; -webkit-box-sizing:border-box; -moz-box-sizing:border-box;">
    	<input type="hidden" name="oid" value="<?php echo $this->order['base']['o_id'];?>" />
        <input type="hidden" name='o_sell_time' value="<?php echo strtotime($this->order['base']['o_sell_time']);?>"/>
        <input type="hidden" name="savetype" value="draft" />
        <?php if($this->order['base']['buyer']['ct_validity_end'] =='0000-00-00' && $this->order['base']['buyer']['ct_validity_start'] =='0000-00-00'){?>
        <input type="hidden" name="ct_validity_start" value ="1970-01-01"/>
        <?php }?>
		<?php
			if(Purview::checkPurview($this->UserConfig['Id'],array('crm','order','trogt')) && $this->order['base']['o_status'] == '征信查询'){
		?>
        <a href="javascript:;" class="a-btn-close J-trogt fn-right mr15">担保人补录</a>
		<?php
			}
			if(Purview::checkPurview($this->UserConfig['Id'],array('crm','order','trocgsp')) && $this->order['base']['o_status'] == '征信查询'){
		?>
        <a href="javascript:;" class="a-btn-close J-exchange fn-right mr15">换配偶做主贷人</a>
		<?php
			}
		?>
    	<input type="submit" class="a-btn-close mr15 J-a-submit" value="仅保存" />
		<?php
			if($this->order['base']['o_status'] == '征信查询' && Purview::checkPurview($this->UserConfig['Id'],array('crm','order','trosubmit'))){
		?>
        <input type="submit" class="a-btn-close mr15 J-a-btn-submit" value="初审单提交" />
		<?php
			}
		?>
    </div>
</form>
</div>


<!-- 上传图片 -->
<script type="text/javascript">
var viewerCert = new Viewer(document.getElementById('J-box-order-cert'),{
    url:"data-original",
    show:function(){
        viewerCert.update();    
    }   
});
var viewerAssets = new Viewer(document.getElementById('J-box-order-assets'),{
    url:"data-original",
    show:function(){
        viewerAssets.update();  
    }   
}); 
var viewerFamily = new Viewer(document.getElementById('J-box-order-family'),{
    url:"data-original",
    show:function(){
        viewerFamily.update();      
    }   
});
var viewerSign = new Viewer(document.getElementById('J-box-order-sign'),{
    url:"data-original",
    show:function(){
        viewerSign.update();    
    }   
});
var viewerFlowing = new Viewer(document.getElementById('J-box-order-flowing'),{
    url:"data-original",
    show:function(){
        viewerFlowing.update();     
    }   
});
var viewerOther = new Viewer(document.getElementById('J-box-order-other'),{
    url:"data-original",
    show:function(){
        viewerOther.update();   
    }   
});
var viewerContract = new Viewer(document.getElementById('J-box-order-contract'),{
    url:"data-original",
    show:function(){
        viewerContract.update();    
    }   
});
var viewerSinglecard = new Viewer(document.getElementById('J-singlecard'),{
    url:"data-original",
    show:function(){
        viewerSinglecard.update();    
    }   
});

<?php $timestamp = time();?>
var names = {'order_cert':'.J-box-order-cert', 'order_assets':'.J-box-order-assets','order_family':'.J-box-order-family','order_sign':'.J-box-order-sign','order_video':'.J-box-order-video','order_singlecard':'.J-box-order-singlecard', 'order_flowing':'.J-box-order-flowing', 'order_other':'.J-box-order-other','order_contract':'.J-box-order-contract'};
function render_upload() {
	var key;
    var limit;
	for (key in names) {
        var fileTypeTxt = 'image/*';
        var url = "/order/upfile/option/upimage/";
		if(key == 'order_video'){
			var url="/order/upfile/option/video/";	
			fileTypeTxt = 'video/*';
		}
        if(key == 'order_singlecard'){
            limit = 5;
        }else if(key == 'order_contract'){
            limit = 100;
        }else{
            limit = 20;
        }
		$('#upload_' + key).uploadifive({
			'auto': true,
			'width': 84,
			'buttonText': '',
			'removeTimeout':1,
			'fileObjName':'upload-pic',
			'formData': {
				'timestamp': '<?php echo $timestamp;?>',
				'tb':key,
				'filebox':'upload-pic',
				'token': '<?php echo md5('unique_salt' . $timestamp);?>',
                'oid' : '<?php echo $this->order['base']['o_id'];?>',
			},
			'number': key,
			'queueClass':names[key],
			'uploadScript': url,
			'removeCompleted' : true,
            'uploadLimit'     : limit, 
            'fileType'  : fileTypeTxt,
			'onSelect' : function(q, opt){
				//$('#'+opt.formData.key + opt.number).find('a').remove();
			},
			'onUploadComplete': function (file, data, opt) {
					var obj = $.parseJSON(data);
					if (data == 0) {
						alert('您上传的文件不是允许的图片文件！');
						return;
					};
					
					if(obj['success']){
						var html='';
							html+='<div style="position:relative;display:inline-block; float:left;margin-right:10px;">';
							html+='	<em class="ico-close J-ico-close"></em>';
							if(opt['number'] == 'order_video'){
								html+='<a href="javascript:;" class="J-video-obj" data-url="'+obj['msg']['ai_ftpurl']+''+obj['msg']['ai_path']+'" style="position:relative; display:inline-block; width:80px;height:80px;">';
							}
							
							
							switch(opt.number){
								case 'order_cert':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_cert[]" />';
									break;
								case 'order_assets':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_assets[]" />';
									break;
								case 'order_family':
									html+='    <img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_family[]" />';
									break;
								case 'order_sign':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_sign[]" />';
									break;
								case 'order_flowing':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_flowing[]" />';
									break;
								case 'order_other':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_other[]" />';
									break;
								case 'order_contract':
									html+='	<img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_contract[]" />';
									break;
								case 'order_video':
									html+='	<img class="example-image" src="<?php echo BASE_STYLE;?>/images/member/default_sildeshow.gif" width="80" height="80" />';
									html+='	<input type="hidden" value="'+obj['msg']['af_path']+'" name="oa_video[]" />';
									break;
                                case 'order_singlecard'	:
                                    html+=' <img class="example-image" src="'+obj['msg']['thumb_path']+'" width="80" height="80" />';
                                    html+=' <input type="hidden" value="'+obj['msg']['ai_path']+'" name="oa_singlecard[]" />';
                                    break;
							}
							
							
                            if(opt['number'] == 'order_video'){
                                html+='</a>';
                            }
                            html+='</div>';
						
						
						$(opt.queueClass).append(html);		
					}else{
						Ext.Msg.alert('提示',obj['msg']);
						return false;	
					}

			}
		});
	}
};
window.validityend = document.getElementById("validity-end").value;
$(document).ready(function(e) {
	render_upload();
	//删除上传的图片
	$(".order-item-box").on('click','.J-ico-close',function(){
		$(this).closest('div').remove();	
	});
	$(".J-ot-bankcard").on('blur',function(){
        var msg = $('input[name="ot_bankcard"]').val();
        if(isNaN(msg) || msg.indexOf(" ") != -1 || msg.length<6 || msg.length>30){
            alert("请输入正确流水卡号");
        }
        
    });
    $('input.changqi').click(function(){
        if(this.checked){
            $("#validity-end").attr("onClick","");
            document.getElementById("validity-end").value="0000-00-00";
            $("#validity-end").attr("disabled","disabled");
        }else{
            $("#validity-end").removeAttr("disabled","disabled");
            $("#validity-end").attr("onClick","WdatePicker()");
            document.getElementById("validity-end").value = validityend;
        }
    });
});
//列表展示
function getAttachmentList(picUrl){
	$(".J-mianqian-item-box").html('<p class="order-mianqian-load">加载中...</p>');
	if(PIC_LIST !=''){
		var html='';
		for(var i in PIC_LIST){
			console.log(i);
			(function(i){
				if(oldPicList.indexOf(i) == -1){//判断新数据的key不存在于老数据中，就添加上传图片，否则不调整。
					
					html+='<dl class="mianqianxinxi-box">';
					html+='	<dt>'+PIC_TXT[i]+'</dt>';
					html+='	<dd style="position:relative;" class="mianqianxinxi-pic-list J-box-order-'+i+'">';
					if(picUrl){
						var key = i+'_url';
						if(PIC_LIST[i] instanceof Array){
							for(var j in PIC_LIST[i]){
								if(typeof(PIC_LIST_URL[key][j]) == 'string'){
									if(i == 'oa_video'){
										html+='<div style="position:relative;display:inline-block; float:left;margin-right:10px;">';
										html+='		<em class="ico-close J-ico-close"></em>';
										html+='		<a href="javascript:;" class="J-video-obj" data-url="'+PIC_LIST_URL[key][j]+'" style="position:relative; display:inline-block; width:80px;height:80px;">';
										html+='			<img src="'+PIC_LIST_URL[key][j]+'" width="80" height="80" />';
										html+='			<input type="hidden" value="'+PIC_LIST[i][j]+'" name="'+i+'[]" />';
										html+='		</a>';
										html+='</div>';	
									}else{
										html+='<div style="position:relative;display:inline-block; float:left;margin-right:10px;">';
										html+='		<em class="ico-close J-ico-close"></em>';
										html+='		<a href="'+PIC_LIST_URL[key][j]+'" data-lightbox="pic" style="position:relative; display:inline-block; width:80px;height:80px;">';
										html+='			<img class="example-image" src="'+PIC_LIST_URL[key][j]+'" width="80" height="80" />';
										html+='			<input type="hidden" value="'+PIC_LIST[i][j]+'" name="'+i+'[]" />';
										html+='		</a>';
										html+='</div>';	
									}
									
										
								}
							}	
						}
						
					}
						
					html+='	</dd>';
					html+='	<dd>';
					html+='		<div class="file-upload-box J-file-upload-box fn-left mr10">';
					html+='			<div class="file-upload-completed" id="J_'+i+'"></div>';
					html+='			<img src="'+BASE_URL+'/images/btn_upload_pic.png" />';
					html+='			<input type="file" id="upload_'+i+'" name="upload-pic" size="30" hidefocus="true" multiple="false" accept="image/*"/>';
					html+='		</div>';
					html+='	</dd>';
					html+='</dl>';
				}
					
			})(i);
		}
		
		if(html !=''){
			$(".J-mianqian-item-box").html(html);	
		}
		
	}
	render_upload();	
}
</script>

<style type="text/css">
	.mianqianxinxi-box {
		height:auto;
		overflow:hidden;
		margin-top:15px;
	}
	
	.mianqianxinxi-box dt {
		margin-bottom:10px;
	}
	.mianqianxinxi-box dd {
		float:left;
	}
	
	.mianqianxinxi-pic-list {
		margin-right:10px;
	}
	
	.mianqianxinxi-pic-list img {
		margin-right:10px;
	}
	
	
</style>

<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl_ext.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/order_troinfo.js?t=<?php echo time();?>"></script>
<?php include $this->Render('footer.php'); die();?>